/*
 * test_manage_def.h
 *
 *  Created on: Aug 19, 2013
 *      Author: VIE28828
 */

#ifndef TEST_MANAGE_DEF_H_
#define TEST_MANAGE_DEF_H_

#include"../../../common/h/common_def.h"

#define TESTM_FILE_CONFIGURATION "./configure/testm_configure.xml"
#define TESTM_MAXIMUM_CLIENT 10
#define TESTM_INACTIVE_CLIENT_STATE -1
#define TESTM_ACTIVE_CLIENT_STATE 0

#define XML_ELEMENT_TRANSPORT_TEST "test_transport"
#define XML_ELEMENT_TRANPORT_TEST_CLIENT "client"
#define XML_ELEMENT_TRANPORT_TEST_PORT "port"
#define XML_ELEMENT_TRANSPORT_TEST_IP_ADDRESS "ip_addr"
#define XML_ELEMENT_TRANSPORT_TEST_CONTENT "content"
#define XML_ELEMENT_TRANSPORT_TEST_AMOUNT_PACKET "amount"

#define XML_ATTRIBUTE_TRANSPORT_TEST "numer_client"

typedef struct{
	U8 client_id;
	U16 port;
	U8 ip_addr[50];
	U8 content[100];
	U32 amount;
	U32 socket_id;
}tm_client_info_t;

typedef struct{
	U8 amount_client;
	tm_client_info_t client_list[TESTM_MAXIMUM_CLIENT];
}tm_config_info_t;
#endif /* TEST_MANAGE_DEF_H_ */
